<?php
/* @var $this NewsController */
/* @var $model News */

$this->breadcrumbs=array(
	'文件下载'=>array('file/index'),
	$model->file_name,
);
?>

<div style="float:left;width:700px;">

	<b><?php echo CHtml::encode($model->getAttributeLabel('file_type')); ?>:</b>
	<?php echo CHtml::encode(FileType::model()->getTypeName($model->file_type)); ?>
	<br />

	<b><?php echo CHtml::encode($model->getAttributeLabel('file_name')); ?>:</b>
	<?php echo CHtml::encode($model->file_name); ?>
	<br />

	<b><?php echo CHtml::encode($model->getAttributeLabel('file_addtime')); ?>:</b>
	<?php echo CHtml::encode(date("Y-m-d",$model->file_addtime)); ?>
	<br />

	<b><?php echo CHtml::encode($model->getAttributeLabel('file_size')); ?>:</b>
	<?php echo CHtml::encode($model->file_size); ?>
	<br />

	<b><?php echo CHtml::encode($model->getAttributeLabel('file_info')); ?>:</b>
	<?php echo CHtml::encode($model->file_info); ?>
	<br />

	<b><?php echo CHtml::encode($model->getAttributeLabel('file_desc')); ?>:</b>
	<?php echo CHtml::encode($model->file_desc); ?>
	<br />
	
	<b><?php echo CHtml::encode($model->getAttributeLabel('download_times')); ?>:</b>
	<?php echo CHtml::encode($model->download_times); ?>
	<br />
	
	<b><?php echo CHtml::link(CHtml::encode("下载"), array('download', 'file_id'=>$model->file_id)); ?></b>
</div>

<div style="float:left;margin-left:10px;width:200px;background: #EFFDFF;" class="portlet">
    <div class="portlet-decoration">
        <div class="portlet-title">文件类别</div>
    </div>
    <div style="margin-top: 5px;margin-left:5px;">
        <ul class="operations">
        <?php
        foreach($file_type_list as $_key=>$_value){
             echo "<li>",CHtml::link($_value['type_name'],array("file/index","file_type"=>$_value['type_id'])),"</li>";
        }
        ?>
       </ul>
    </div>
</div>